from PyQt4.QtGui import *

class UnitGraphicsItem(QGraphicsPixmapItem):


    def __init__(self, pixmap, unit, parent = None, scene = None):
        super(UnitGraphicsItem, self).__init__(pixmap, parent=parent, scene=scene)
        self.unit = unit
        self.setPos(self.unit.last_move_x(), self.unit.last_move_y())
        self.setFlag(QGraphicsItem.ItemIsMovable, True);

